/*
 * Class created by lensfrex.
 */

package net.lensfrex.dscape.web.controllers;

import net.lensfrex.dscape.domain.response.Response;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class Error extends AbstractMethodError {

    @ExceptionHandler({ RuntimeException.class })
    public Response error() {
        return Response.error(50000, "服务器内部错误....");
    }

}
